<!DOCTYPE html SYSTEM "http://www.thymeleaf.org/dtd/xhtml1-strict-thymeleaf-4.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:th="http://www.thymeleaf.org">

<div class="layui-tab layui-tab-brief" th:fragment="tab">
    <ul class="layui-tab-title">
        <li th:class="${flag == 1 ? 'layui-this' : ''}"><a th:href="|/msg/temp/detail.action?templateId=${obj.templateId == null ? 0 : obj.templateId}|" lay-text="基本信息">基本信息</a></li>
        <li th:class="${flag == 2 ? 'layui-this' : ''}" th:if="${obj.templateId > 0}"><a th:href="|/msg/temp/content.action?templateId=${obj.templateId}|" lay-text="消息内容">消息内容</a></li>
        <li th:class="${flag == 3 ? 'layui-this' : ''}" th:if="${obj.templateId > 0 && (obj.templateType == 2 || obj.templateType == 3)}"><a th:href="|/msg/temp/conf/configChannel.action?templateId=${obj.templateId}|" lay-text="渠道配置">渠道配置</a></li>
        <li th:class="${flag == 4 ? 'layui-this' : ''}" th:if="${obj.templateId > 0 && (obj.templateType == 1 || obj.templateType == 3)}"><a th:href="|/msg/temp/conf/configCityByTemplateId.action?templateId=${obj.templateId}|" lay-text="城市配置">城市配置</a></li>
    </ul>
</div>

</html>